package datastruct;

import java.util.Vector;

public class Relations {
	private Vector<Relation> relations = new Vector<Relation>();
	
	public Relations()
	{
		super();
	}
	
	public void addRelation(Relation relation)
	{
		relations.add(relation);
	}
	
	public int size()
	{
		return relations.size();
	}
	
	public Relation get(int index)
	{
		return relations.get(index);
	}
	
	public void clear()
	{
		relations.clear();
	}
	
	public void remove(int index)
	{
		relations.remove(index);
	}
	
	public void remove(Relation relation)
	{
		relations.remove(relation);
	}
}
